The property SciChart3DSurface.Camera defines an ICameraController instance. Derived types are CameraController (a plain CLR object, which implements INotifyPropertyChanged) and Camera3D (a FrameworkElement with DependencyProperties).
By default, the SciChart3DSurface.Camera is set to a new CameraController instance. This defines the Position, Target (in world coordinates) of the camera, and whether the camera is in Perspective or Orthogonal projection modes.
Camera Position, Target
The camera is defined by a Position, Target which are XYZ vectors in World Coordinates.
Other properties which define the viewport as seen by the camera include:
- Camera.Position and Camera.Target which define the position and target of the camera in World Coordinates.
- Camera.OrbitalPitch and Camera.OrbitalYaw which define the pitch and yaw around the target in Radians
- Camera.Radius which is the distance of the Camera Position to the Camera Target
- Camera.AspectRatio which defines the aspect ratio.
- Camera.ProjectionMode which defines whether the camera is Perspective or Orthogonal
- Camera.OrthoWidth and Camera.OrthoHeight, which define the width, height of the projected viewport when in ProjectionMode Orthogonal.
- Camera.FieldOfView which is the FOV of the camera in radians.
- Camera.NearClip and Camera.FarClip which define when clipping of close or far objects should occur.
The WPF Chart Example Modify Camera3D Properties shows how to manipulate the camera, and how to switch between perspective and orthoginal modes.